﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.IO;

namespace CooWork.Services
{
    public class Rawjson:IRawjson
    {
        public string GetRawJson()
        {
            HttpContext.Current.Request.InputStream.Position = 0;
            string rawJson = null;
            using (StreamReader reader = new StreamReader(HttpContext.Current.Request.InputStream))
            {
                rawJson = reader.ReadToEnd();
            }
            return rawJson;
        }

    }
}